package com.czmh.etc.onlinepubsys.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * ETC奖励记录表
 *
 * @author Auto
 * @email Auto
 * @date 2020-11-26 13:49:35
 */
@Data
public class EtcReward implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("ID")
    private String id;

    @ApiModelProperty("设备产品编码")
    private String productSn;

    @ApiModelProperty("奖励资源")
    private String rewardSource;

    @ApiModelProperty(value = "资源类型，0为第三方链接, 1激活红包奖励-微信转账到零钱, 2确认收货红包奖励-微信转账到零钱")
    private Integer rewardType;

    @ApiModelProperty("用户名称")
    private String name;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("openid")
    private String openid;

    @ApiModelProperty("unionid")
    private String unionid;

    @ApiModelProperty("用户是否关注公众号：0未关注，1已关注")
    private Integer subscribe;

    @ApiModelProperty("用户所在国家")
    private String country;

    @ApiModelProperty("用户所在省份")
    private String province;

    @ApiModelProperty("用户所在城市")
    private String city;

    @ApiModelProperty("用户的语言，简体中文为zh_CN")
    private String language;

    @ApiModelProperty("用户头像")
    private String headimgurl;

    @ApiModelProperty("用户领取奖励时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date subscribeTime;

    @ApiModelProperty("用户的性别，值为1时是男性，值为2时是女性，值为0时是未知")
    private Integer sex;

    @ApiModelProperty("用户手机号")
    private String phone;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("用户分组ID")
    private String groupid;

    @ApiModelProperty("门店名称")
    private String storeAddress;

    @ApiModelProperty("奖励资源使用状态(0未使用，1未推送 2已推送)")
    private Integer status;

    @ApiModelProperty("0.未删除 1.删除")
    private Integer deleteFlag;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updatedTime;

    @ApiModelProperty("付款成功时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date paymentTime;

    @ApiModelProperty("微信付款单号")
    private String paymentNo;

    @ApiModelProperty("微信付款金额, 单位:分")
    private Integer payAmount;

    @ApiModelProperty("商户订单号")
    private String orderId;

    @ApiModelProperty("微信付款状态：0未付款，1付款成功，2付款失败")
    private Integer payStatus;

    @ApiModelProperty("微信付款返回结果")
    private String jsonData;

    @ApiModelProperty("微信付款请求")
    private String requestData;

}
